<?php 
include("common/header.html");
include("common/left.html");
if(!$_SESSION['memberID']){exit("<script>window.location='dlogin.html'</script>");}
$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
//当有输入充值账号的时候，查id
if($_SESSION['memberID']!=23444  && $_SESSION['sdtype']!=9&&$_SESSION['sid']!=1){
    exit("<script>window.location='home.html'</script>");
}
if(isset($_REQUEST['dname'])){
    $dname=$_REQUEST['dname'];
    if($dname&&is_numeric($dname)&&strlen($dname)==6){
        $str="select id from pft_member where account='$dname' limit 1";
    }elseif($dname=mysql_real_escape_string(trim($_REQUEST['dname']))){
        $str="select id from pft_member where dname='$dname' limit 1";
    }
    $GLOBALS['le']->query($str);
    $GLOBALS['le']->fetch_assoc();
    $id=$GLOBALS['le']->f('id');
    if(!$id){
        exit("<alert>请输入正确的账号</alert>");
    }
    //获得该账号的账号资金
    $lmoney=simplexml_load_string($s->PFT_Member_Fund($id,0));
    $lmoney=$lmoney->Rec[0]->UUamoney/100;
}
include("tpl/offlineRecharge.html");
include("common/footer.html");

?>